#define _CRT_SECURE_NO_WARNINGS

#include<stdio.h>

int main()
{
	int a = 0;
	int b = 10;

	//printf("%d\n", a && (b = a) || a);



	printf("%d\n", 1 || 0 && 0);
	printf("%d\n", 0 || 0 && 1);
	printf("%d\n", 0 || 1 && 0);


	printf("%d\n", b || (b = a) && a && (b = a));
	printf("%d %d", a, b);

	return 0;
}